<?php
<object class="validate_form" name="validate_form" baseclass="page">
  <property name="Background"></property>
  <property name="Caption">Unit1</property>
  <property name="DocType">dtNone</property>
  <property name="Height">600</property>
  <property name="IsMaster">0</property>
  <property name="Name">validate_form</property>
  <property name="Width">800</property>
  <property name="OnCreate">validate_formCreate</property>
  <object class="Edit" name="editUsername" >
    <property name="Height">21</property>
    <property name="Left">32</property>
    <property name="Name">editUsername</property>
    <property name="Top">48</property>
    <property name="Width">121</property>
    <property name="jsOnBlur">editUsernameJSBlur</property>
  </object>
  <object class="Label" name="lblUsername" >
    <property name="Height">13</property>
    <property name="Left">32</property>
    <property name="Name">lblUsername</property>
    <property name="Top">32</property>
    <property name="Width">121</property>
  </object>
  <object class="JTJavaScript" name="JSValidate" >
    <property name="Code"><![CDATA[function validateRequire(editBox, lblError)
{
 editValue = document.getElementById(editBox).value;
 //error = Number(document.getElementById('hfValidateError').value);
 if(editValue.length==0)
 {
  //alert('error');
  lblValue = document.getElementById(lblError).innerHTML = '&amp;darr This field is required &amp;darr';
  //alert(document.getElementById('hfValidateError').value); 
  //document.getElementById('hfValidateError').value = error + Number('1');
  //alert(document.getElementById('hfValidateError').value);
  //alert('error end');
 }
 else
 {
  lblValue = document.getElementById(lblError).innerHTML = '';
 }
}]]></property>
    <property name="Height">20</property>
    <property name="Left">32</property>
    <property name="Name">JSValidate</property>
    <property name="Width">180</property>
  </object>
  <object class="Edit" name="editPassword" >
    <property name="Height">21</property>
    <property name="Left">176</property>
    <property name="Name">editPassword</property>
    <property name="Top">48</property>
    <property name="Width">121</property>
    <property name="jsOnBlur">editPasswordJSBlur</property>
  </object>
  <object class="Label" name="lblPassword" >
    <property name="Height">13</property>
    <property name="Left">176</property>
    <property name="Name">lblPassword</property>
    <property name="Top">32</property>
    <property name="Width">121</property>
  </object>
  <object class="Button" name="btnSubmit" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">Submit</property>
    <property name="Height">25</property>
    <property name="Left">32</property>
    <property name="Name">btnSubmit</property>
    <property name="Top">88</property>
    <property name="Width">75</property>
    <property name="OnClick">btnSubmitClick</property>
  </object>
  <object class="HiddenField" name="hfError" >
    <property name="Height">18</property>
    <property name="Left">224</property>
    <property name="Name">hfError</property>
    <property name="Width">200</property>
  </object>
  <object class="Button" name="Button1" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">Button1</property>
    <property name="Height">25</property>
    <property name="Left">264</property>
    <property name="Name">Button1</property>
    <property name="Top">96</property>
    <property name="Width">75</property>
    <property name="jsOnClick">Button1JSClick</property>
  </object>
</object>
?>
